package io;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

/**
 * 关于输入输出流的练习
 * 将All小写字母写入到fos.txt中
 */
public class Practice {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos=new FileOutputStream("fos.txt");
        for (int i = 0; i < 26; i++) {
//            fos.write((char)(97+i));
            fos.write(97+i);
        }
        System.out.println("输出完毕！");
        fos.close();
    }
}
